<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
 	<head>
	    <title th:inline="text">[[#{templates}]]</title>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" media="all" href="../../css/style.css" th:href="@{/css/style.css}" />
		<script src="../../js/functions.js" th:src="@{/js/functions.js}"></script>		
  	</head>
  	<body>
	  	<span style="float: right">  	
		    <a href="?lang=en_US" th:href="@{'javascript:lang(\''+${#httpServletRequest.requestURI}+${#strings.isEmpty(#httpServletRequest.queryString)?'':'?'+#httpServletRequest.queryString}+'\', \'en_US\');'}">US</a>
		    |
		    <a href="?lang=pt_BR" th:href="@{'javascript:lang(\''+${#httpServletRequest.requestURI}+${#strings.isEmpty(#httpServletRequest.queryString)?'':'?'+#httpServletRequest.queryString}+'\', \'pt_BR\');'}">BR</a>
		</span>
		<div class="seedstarterlist" th:unless="${#lists.isEmpty(list)}">	
			<h2 th:text="#{templates}">Templates</h2>	
			<table>
				<thead>
					<tr>
						<th th:text="#{id}">Id</th>
						<th th:text="#{name}">Name</th>
						<th th:text="#{actions}" colspan="2" >Actions</th>
					</tr>
				</thead>
				<tbody>
					<tr th:each="obj : ${list}">
						<td th:text="${obj.id}">1234</td>
						<td th:text="${obj.name}">Template Name</td>
						<td >
							<form th:method="'delete'" th:action="@{'templates/' + ${obj.id}}" action="#">
				                <input type="submit" th:value="#{delete}" value="Delete" />
				            </form>
            			</td>
						<td >
							<a href="form.html" th:href="@{'templates/' + ${obj.id} + '/edit'}" th:inline="text" >[[#{edit}]]</a>
            			</td>
					</tr>
				</tbody>
			</table>	
		</div>
	</body>
</html>